<%--
  Created by IntelliJ IDEA.
  User: PC
  Date: 2024/3/25
  Time: 16:49
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>您的购物车</title>
</head>
<body>
<hr>
<table border="1" cellspacing="0" width="80%">
    <tr>
        <th>商品名称</th>
        <th>商品信息</th>
        <th>商品价格</th>
        <th>商品分组</th>
    </tr>

    <c:forEach items="${gouwucarList}" var="gouwucar">
        <tr align="center">
            <td>${gouwucar.goodsName}</td>
            <td>${gouwucar.goodsMessage}</td>
            <td>${gouwucar.price}</td>
            <td>${gouwucar.goodsGroup}</td>
            <td><a href="/logindemo2/deleteGouwucarGoods?id=${gouwucar.id}">删除</a> <a href="/logindemo2/showGoodsGroup?id=${gouwucar.id}">调整分组</a> <a href="/logindemo2/createOrderFormByGroup?id=${gouwucar.id}">分组生成订单</a></td>
        </tr>
    </c:forEach>





</table>
<form action="wait.jsp" method="post">
    <input type="submit" value="清空购物车"><br>
</form>
<form action="showUserBuy.jsp" method="post">
    <input type="submit" value="返回主界面"><br>
</form>
</body>
</html>
